package com.javastudy.jdkfeature.jdk8.stream;

import static org.junit.Assert.*;

import java.nio.charset.Charset;
import java.util.List;

import org.junit.Test;

import com.google.common.collect.Lists;

public class StreamTest {

  @Test
  public void test() {
    List<Integer> nums = Lists.newArrayList(1,null,3,4,null,6);
    long total = nums.stream().filter(num -> num != null).count();
    
    System.out.println(Charset.defaultCharset());
  }

}
